package com.authine.cloudpivot.ext.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum IfYesStatusEnum {

    NO(0,"否"),
    YES(1,"是");
    private Integer code;

    private String desc;


    public static boolean checkYes(Integer code){
        if (IfYesStatusEnum.YES.getCode().equals(code)){
            return true;
        }
        return false;
    }
}
